{% extends "miramar/base.html" %}
{% load i18n %}
{% load miramar_tags %}

{% block title %}{% trans "Branch Version" %}{% endblock %}
{% block extrahead %}
{{ form.media }}
<script type="text/javascript" src="{{ MEDIA_URL }}{{ jquery_urlstub }}"></script>
<script type="text/javascript">
$(document).ready(function() {
  $("#header").hide();
  $(".breadcrumbs").hide();
});
</script>
{% endblock %}
{% block content_title %}<h1>{% trans "Branch Version" %}</h1>{% endblock %}

{% block content %}
<form action=".?popup=1" method="post">
<table class="module">
  <caption>{% trans "Branch Version" %}</caption>
  <tr>
      <th>{% trans "Source Version" %}</th>
      <td><strong>{{ pageversion.version_tag|escape }}</strong></td>
  </tr>
  <tr>
      <th>{% trans "Source Revision" %}</th>
      <td><strong>{{ pageversion.revision }}</strong></td>
  </tr>
  {{ form.as_table }}
</table>
<p><input id="id_cancel" type="button" value="{% trans "Cancel" %}" /><input type="submit" value="{% trans "Submit" %}" /></p>
<script type="text/javascript">
  $("#id_cancel").click(function() { window.parent.$.modal.close(); });
</script></form>
{% endblock %}